//
//  RouterRegisterProtocol.swift
//  Common
//
//  Created by yuyang on 2021/11/23.
//

import Foundation

/// Router注册绑定协议, VC实现该协议后会自行注册绑定
/// 协议用于支持页面间传值(从前往后传 & 从后往前传)
@objc public protocol RouterRegisterProtocol {
    static func registerName() -> String

    @objc optional func pageWillPushAppearReceive(params: [String: Any]?, options: [String: Any]?)
    @objc optional func pageWillPopToAppearReceive(params: [String: Any]?, options: [String: Any]?)
}
